import {Navigate} from 'react-router-dom'
import React from "react";
import Login from "../pages/Login";
import GetUserInfo from "../pages/Login/GetUserInfo";
import ShellPage from "../pages/ShellPage";
import ProjectPage from "../pages/ProjectPage";
import ProjectConfig from "../pages/ProjectConfig";

const routes = [
    {
        path: '/home/*',
        element: <ShellPage />,
        children:[
            {
                path: 'project',
                element: <ProjectPage />,
            },
        ]
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/getUserInfo',
        element: <GetUserInfo />
    },
    {
        path:'/projectConfig/:projectId/setting',
        element:<ProjectConfig />
    },
    {
        path: '/',
        element: <Navigate to="/home/project"/>
    }
]

export default routes